class CreateBaseDishes < ActiveRecord::Migration
  def self.up
    create_table :base_dishes do |t|
      t.string  :name
      t.text    :description
      t.string  :image
      t.integer :price
      t.string  :material_id_list   #所需食材列表
      t.string  :material_name_list
      t.string  :spice_id_list   # 所需调味料列表
      t.string  :spice_name_list
      t.integer :user_level  # 所需等级
      t.integer :amount
      t.integer :ep_level1
      t.integer :ep_level2
      t.integer :ep_level3
      t.timestamps
    end
  end

  def self.down
    drop_table :base_dishes
  end
end
